/* COLORES | C: 2022-05-24 | by: Elong
   last update: 2022-05-30 | Ver 1.6.0 */
.es-full_masker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.es-ctrl {
  position: fixed;
  box-shadow: #00000080 0 0 3px;
  border-radius: 8px;
  padding-bottom: 10px;
  background-color: #fff;
}

.es-ctrl * {
  -webkit-user-drag: none;
}

.es-ctrl .es-colores_palette {
  background: currentColor;
  width: 200px;
  height: 100px;
  position: relative;
}

.es-ctrl .es-colores_palette:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fff 0, transparent 100%);
  top: 0;
  left: 0;
  -webkit-user-drag: none;
}

.es-ctrl .es-colores_palette:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, #000 0, transparent 100%);
  top: 0;
  left: 0;
  -webkit-user-drag: none;
}

.es-ctrl .es-colores_palette .es-colores_palette_thumb {
  box-sizing: border-box;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 100%;
  top: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 1px #888;
  box-shadow: #00000080 0 0 3px;
  z-index: 1;
}

.es-ctrl .es-rgb_range {
  position: relative;
  width: calc(100% - 40px);
  height: 8px;
  margin: 16px 20px;
  border-radius: 4px;
  background-image: linear-gradient(to right, #f00 0, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%);
}

.es-ctrl .es-rgb_range input[type=range]::-webkit-slider-runnable-track {
  position: absolute;
  width: calc(100% + 16px);
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background-color: transparent;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.es-ctrl .es-rgb_range .es-rgb_range_thumb {
  box-sizing: border-box;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 1px #888;
  pointer-events: none;
  box-shadow: #000000a0 0 0 3px;
}

.es-ctrl .es-alpha_range {
  position: relative;
  width: calc(100% - 40px);
  height: 8px;
  margin: 16px 20px;
  border-radius: 4px;
  width: auto;
  background-image: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  background-color: currentColor;
}

.es-ctrl .es-alpha_range .es-alpha_mask {
  color: inherit;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  top: 0;
  left: 0;
}

.es-ctrl .es-alpha_range input[type=range]::-webkit-slider-runnable-track {
  position: absolute;
  width: calc(100% + 16px);
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  background-color: transparent;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.es-ctrl .es-alpha_range .es-alpha_range_thumb {
  box-sizing: border-box;
  position: absolute;
  width: 16px;
  height: 16px;
  left: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background-image: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  box-shadow: 0 0 1px #888;
  pointer-events: none;
  box-shadow: #000000a0 0 0 3px;
}

.es-ctrl .es-alpha_range .es-alpha_range_thumb .es-alpha_range_thumb_before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: currentColor;
}

.es-ctrl .es-color_input {
  display: flex;
  align-items: center;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  margin-bottom: 16px;
}

.es-ctrl .es-color_input .es-color_block {
  width: 27px;
  height: 27px;
  position: relative;
  background-image: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  border-radius: 4px;
  box-shadow: #00000042 0 0 3px;
}

.es-ctrl .es-color_input .es-color_block .es-color_block_before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: currentColor;
  border-radius: 4px;
}

.es-ctrl .es-color_input .es-color_inputer {
  border: 1px #ccc solid;
  line-height: 1.6;
  width: 128px;
  outline: none;
  border-radius: 6px;
  color: #333 !important;
  font-size: 16px;
  letter-spacing: 1.5px;
  padding-left: 5px;
  box-sizing: border-box;
  font-family: monospace;
  font-weight: bold;
  font-size: 16px;
}

.es-ctrl .es-bottom_btn {
  display: flex;
  align-items: center;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  font-size: 14px;
}

.es-ctrl .es-bottom_btn .es-confirmBtn {
  padding: 3px 12px;
  border-radius: 4px;
  background: #1AA034;
  color: #fff !important;
  cursor: pointer;
}

.es-ctrl .es-bottom_btn .es-cancelBtn {
  padding: 3px 12px;
  border-radius: 4px;
  background: #999;
  color: #fff !important;
  cursor: pointer;
}

/* 页面控制器 */

.-colores- {
  display: flex;
  align-items: center;
  height: auto;
  width: fit-content;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.-colores- .es-cb {
  position: relative;
  width: 28px;
  height: 28px;
  box-shadow: #00000042 0 0 3px;
}

.-colores- .es-cb:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(45deg, #aaa 25%, transparent 25%, transparent 75%, #aaa 75%, #aaa), repeating-linear-gradient(45deg, #aaa 25%, #fff 25%, #fff 75%, #aaa 75%, #aaa);
  background-position: 0 0, 4px 4px;
  background-size: 8px 8px;
  z-index: -1;
}

.-colores- input[type=text] {
  padding: 0;
  border: none;
  outline: none;
  margin-left: 8px;
  letter-spacing: 1px;
  font-family: monospace;
  font-weight: bold;
  font-size: 16px;
  width: 92px;
  line-height: 28px;
  color: #333;
}

/* 弹出层相关 */
.es-msgPop {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .6);
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 15px;
}